<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,initial-scale=1.0,width=device-width" />
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>通用头部</title>
    <!-- 基本框架 -->
    <link rel="stylesheet" href="../../../css/common.css">
    <script src="../../../script/vue.min.js" type="text/javascript"></script>
    <script src="../../../script/frame.js" type="text/javascript"></script>
    <script src="../../../script/baseConfig.js" type="text/javascript"></script>
    <script src="../../../script/utils.js" type="text/javascript"></script>
    <script src="../../../script/common.js" type="text/javascript"></script>
    <style>
      body{background:#FFF;}
      .rightBtn{
        width:1.2rem;
        margin-top:0.2rem;
        height: 0.6rem;
        line-height: 0.6rem;
        border-radius:3rem;
        color:#FFF;
        font-size:0.3rem;
        text-align:center;
        display: block;
        background:linear-gradient(to right,#ff2626 0%,#fd6e1f 70%);;
      }
    </style>
</head>
<body>
    <div id="app" v-cloak>
        <div id="header">
            <div class="public-title">
                <div class="back" @click="api.closeWin();"><img src="../../../image/icons/left.png" />{{param.backText==false?'':'返回'}}</div>
                <div class="h3" v-text="param.title || ''"></div>
                <div class="right">
                    <button @click="savename" class="rightBtn">保存</button>
                </div>
            </div>
        </div>
    </div>
    <script type="text/javascript">
        apiready = function() {
            var app = new Vue({
                el:'#app',
                data:{
					iosTest:false,
                    param:api.pageParam.data,
                },
                methods:{
                    savename: function(){
                        api.sendEvent({
						    name: 'settingsSaveNickName',
						});
                    }
                },
                mounted(){
					$.initJs(this);

                }
            });

            api.openFrame({
                name: api.pageParam.page,
                url: 'widget://html/content/' + api.pageParam.page + '.html',
                softInputBarEnabled:api.pageParam.data.softInputBarEnabled || false,
                softInputDismissMode:api.pageParam.data.softInputDismissMode || ['tap','drag'],
                pageParam: {
                    data:api.pageParam.data
                },
                useWKWebView:true,
                rect: $.rect()
            });
        }
    </script>
</body>
</html>
